package com.ruoyi.shop.service;

import java.util.List;
import com.ruoyi.shop.domain.ShopProducts;

/**
 * 商品Service接口
 * 
 * @author liuwp
 * @date 2025-11-24
 */
public interface IShopProductsService 
{
    /**
     * 查询商品
     * 
     * @param id 商品主键
     * @return 商品
     */
    public ShopProducts selectShopProductsById(Long id);

    /**
     * 查询商品列表
     * 
     * @param shopProducts 商品
     * @return 商品集合
     */
    public List<ShopProducts> selectShopProductsList(ShopProducts shopProducts);

    /**
     * 根据业务主键查询一条记录：商品
     *
     * @param shopProducts 商品
     * @return 商品
     */
    public ShopProducts selectOneShopProducts(ShopProducts shopProducts);

    /**
     * 新增商品
     * 
     * @param shopProducts 商品
     * @return 结果
     */
    public int insertShopProducts(ShopProducts shopProducts);

    /**
     * 修改商品
     * 
     * @param shopProducts 商品
     * @return 结果
     */
    public int updateShopProducts(ShopProducts shopProducts);

    /**
     * 修改商品
     *
     * @param shopProducts 商品
     * @param shopProducts 商品条件
     * @return 结果
     */
    public int updateShopProductsCondition(ShopProducts shopProducts, ShopProducts shopProductsCondition);

    /**
     * 批量删除商品
     * 
     * @param ids 需要删除的商品主键集合
     * @return 结果
     */
    public int deleteShopProductsByIds(Long[] ids);

    /**
     * 删除商品信息
     * 
     * @param id 商品主键
     * @return 结果
     */
    public int deleteShopProductsById(Long id);

    /**
     * 条件删除商品
     *
     * @param shopProducts 商品
     * @return 结果
     */
    public int deleteShopProductsByCondition(ShopProducts shopProducts);
}
